package com.gigi.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 班级表
 * </p>
 *
 * @author AutoGenerator
 * @since 2024-01-27
 */
@TableName("gigi_class")
@ApiModel(value="GigiClassEntity对象", description="班级表")
public class GigiClassEntity extends Model<GigiClassEntity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "班级名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "班级人数")
    @TableField("count")
    private Integer count;

    @ApiModelProperty(value = "有效性（0无效 1有效）")
    @TableField("flag")
    private Integer flag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "GigiClassEntity{" +
            "id=" + id +
            ", name=" + name +
            ", count=" + count +
            ", flag=" + flag +
        "}";
    }
}
